Enable CPPFLAGS hardening flags (Closes: #665322); Better explanation for the -c...
authorYunQiang Su <wzssyqa@gmail.com>
Wed, 28 Mar 2012 20:56:04 +0000 (04:56 +0800)
committerYunQiang Su <wzssyqa@gmail.com>
Wed, 28 Mar 2012 20:56:04 +0000 (04:56 +0800)
debian/changelog
debian/patches/more_clear_man_c_option.patch [new file with mode: 0644]
debian/patches/series
debian/rules

index 3027f42b4d21a686a2096e133971fc73c40e4c8a..410d07e2acf2588008dc9e9d20fc04d7ff0a29bd 100644 (file)
@@ -4,6 +4,9 @@ opencc (0.3.0-2) unstable; urgency=low
   * Add libopencc-dbg package.
   * Bump standard version to 3.9.3.
   * Add YunQiang Su to Uploaders.
+  * Enable CPPFLAGS hardening flags (Closes: #665322).
+  * Better explanation for the -c option arguments of opencc,
+    give the path of these files out. (Closes: #656201).
 
  -- YunQiang Su <wzssyqa@gmail.com>  Thu, 29 Mar 2012 03:22:51 +0800
 
diff --git a/debian/patches/more_clear_man_c_option.patch b/debian/patches/more_clear_man_c_option.patch
new file mode 100644 (file)
index 0000000..06005ff
--- /dev/null
@@ -0,0 +1,20 @@
+Description: Clear the path of config_file /usr/bin/opencc
+ Give out the path of config_file: /usr/lib/${DEB_HOST_MULTIARCH}/opencc/*.ini
+Author: Kan-Ru Chen <koster@debian.org>, YunQiang Su <wzssyqa@gmail.com>
+
+Index: opencc/doc/opencc.1
+===================================================================
+--- opencc.orig/doc/opencc.1   2012-03-29 04:35:59.000000000 +0800
++++ opencc/doc/opencc.1        2012-03-29 04:38:50.720283041 +0800
+@@ -16,6 +16,11 @@
+ \fB\-c\fR
+ Load dictionary configuration from config_file.
+ .IP
++Package libopencc1 has some configuration file preset: /usr/lib/${DEB_HOST_MULTIARCH}/opencc/*.ini;
++the ${DEB_HOST_MULTIARCH} is something like "x86_64-linux-gnu" (AMD64)
++or "i386-linux-gnu" (i386), or something else;
++you can get it by `dpkg-architecture \-qDEB_HOST_MULTIARCH`.
++.IP
+ Note:
+ .IP
+ Text from standard input will be read if input_file is not set and will be written to standard output if output_file is not set.
index fb650d8ee63c2c3098d80da6a96de66e438700b5..58ca48e1dd4a3d60ee49a105abb2fe353de8be39 100644 (file)
@@ -1,2 +1,3 @@
 
+more_clear_man_c_option.patch
 fix-new-test-cases.patch
index 69a6c8a4a5cd87d490adac29d6456c16f0e825bd..3a15a814ed63c1dab0af248c8c99b506fe9577c6 100755 (executable)
@@ -2,6 +2,9 @@
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
+# CMake doesn't use CPPFLAGS, pass them to CFLAGS/CXXFLAGS to enable the
+# missing (hardening) flags.
+CFLAGS += $(CPPFLAGS)
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)